package com.sina.shop.dao.order;

import com.sina.shop.core.BaseDao;
import com.sina.shop.domain.order.Order;
import com.sina.shop.domain.order.Status;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:订单管理
 * 段浩杰   2018-02-05-11:43
 */
public interface OrderDao extends BaseDao {

    //根据用户id得到订单列表
    List<Order> getOrderListByAdminId(Long adminId, Status status);

    //根据id删除订单
    Integer deleteOrder(Long id);

    //根据id更新订单的状态
    Integer updateOrderStatus(Long id, Status status);
}
